package com.appkubes.mall.restful.application.plugin.rent.service.impl;

import com.appkubes.mall.restful.application.plugin.rent.service.PluginRentUrlService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class PluginRentUrlServiceImpl implements PluginRentUrlService {
    @Value("${kylin.plugin.rent.restfulUrl}")
    String rentRestfulUrl;
    @Value("${kylin.plugin.rent.adminUrl}")
    String rentAdminUrl;

    @Override
    public String getOrderAddURL() {
        return rentRestfulUrl + "/rent/order/add";
    }

    @Override
    public String getOrderCancelURL() {
        return rentRestfulUrl + "/rent/order/cancel";
    }

    @Override
    public String getOrderQueryURL() {
        return rentRestfulUrl + "/rent/order/queryRentOrder";
    }

    @Override
    public String getOrderShipURL() {
        return rentRestfulUrl + "/rent/order/ship";
    }

    @Override
    public String getOrderPayURL() {
        return rentRestfulUrl + "/rent/order/paySuc";
    }

    @Override
    public String getRentOrderQueryURL() {
        return rentRestfulUrl + "/rent/order/queryRentOrder";
    }

    @Override
    public String getRentBillPayFirstURL() {
        return rentRestfulUrl + "/rent/order/payFirst";
    }
}
